1.1.6.1. security.FloatLoopCounter (C)
Warn on using a floating point value as a loop counter (CERT: FLP30-C, FLP30-CPP).

Examples:

void test() {
  for (float x = 0.1f; x <= 1.0f; x += 0.1f) {} // warn
}